import axios from "./api";

export const sysUserPage = params => {
  return axios.post("/v1/sysUser/pageQuery", params).then(res => res.data);
};
export const sysUserGet = params => {
  return axios.get(`/v1/sysUser/get/${params}`).then(res => res.data);
};
export const sysUserUpdate = params => {
  return axios.put(`/v1/sysUser/update`, params).then(res => res.data);
};
export const sysUserSave = params => {
  return axios.post(`/v1/sysUser/save`, params).then(res => res.data);
};
export const sysUserDelete = params => {
  return axios.delete(`/v1/sysUser/delete/${params}`).then(res => res.data);
};
